# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libfsapfs-python
_pkgname=libfsapfs-python
pkgver=20240429
pkgrel=3
pkgdesc='Library and tools to access the Apple File System (APFS).'
url='https://pypi.org/project/libfsapfs-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('eeed5e615f254da485364a885f6148fe3d382ca0bed222c2c17fcc0b4f46510a5bd558087306e596de6a8def665ce17939625bc70b4adb797001c7f8df4bfd0c')

build() {
  cd "libfsapfs-$pkgver"

  python setup.py build
}

package() {

  cd "libfsapfs-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

